x=[0.5,0.5;0.7,0.7]
i=2
k=2;
while i<20
if k>1
    x(i+1,1)=rand(1,1);                         %standard uniform distribution
    x(i+1,2)=rand(1,1);							%
    [A,V,inputSize]=generateSimpleConnection(x);
    [D,k]=getNetworkLength(A,D2(i),D1(i));		%Set position parameters
else
    i=i+1;
    k=2;
    D=10000;
end
end
  [A,V,inputSize]=generateSimpleConnection(x)
  plotSimpleNetwork( A,V,inputSize)